package GUI;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JLabel;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JTextField;
import javax.swing.DefaultComboBoxModel;

public class DetermineStageDuration_GUI extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JTextField stage1Dur;
	private JTextField stage3Dur;
	private JComboBox reqNum;
	private JComboBox stage1;
	private JComboBox stage2;
	private JComboBox stage3;
	private JComboBox stage4;
	private JButton btnSubmit;
	private JButton btnCancel;
	public DetermineStageDuration_GUI() {
		setLayout(null);
		
		JLabel lblDetermineStageDuration = DefaultComponentFactory.getInstance().createTitle("Determine stage duration ");
		lblDetermineStageDuration.setIcon(new ImageIcon(DetermineStageDuration_GUI.class.getResource("/Picture/network-clock-icon.png")));
		lblDetermineStageDuration.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblDetermineStageDuration.setBounds(10, 0, 335, 128);
		add(lblDetermineStageDuration);
		
		JLabel lblReqNum = DefaultComponentFactory.getInstance().createLabel("Choose request number:");
		lblReqNum.setFont(new Font("Arial", Font.BOLD, 12));
		lblReqNum.setBounds(10, 146, 174, 10);
		add(lblReqNum);
		
		JLabel lblStage1 = DefaultComponentFactory.getInstance().createLabel("Estimation stage:");
		lblStage1.setFont(new Font("Arial", Font.BOLD, 12));
		lblStage1.setBounds(10, 193, 112, 15);
		add(lblStage1);
		
		JLabel lblStage2 = DefaultComponentFactory.getInstance().createLabel("Examination stage:");
		lblStage2.setFont(new Font("Arial", Font.BOLD, 12));
		lblStage2.setBounds(10, 240, 112, 15);
		add(lblStage2);
		
		JLabel lblStage3 = DefaultComponentFactory.getInstance().createLabel("Performance stage:");
		lblStage3.setFont(new Font("Arial", Font.BOLD, 12));
		lblStage3.setBounds(10, 297, 134, 15);
		add(lblStage3);
		
		JLabel lblStage4 = DefaultComponentFactory.getInstance().createLabel("Testing stage:");
		lblStage4.setFont(new Font("Arial", Font.BOLD, 12));
		lblStage4.setBounds(10, 350, 112, 15);
		add(lblStage4);
		
		reqNum = new JComboBox();
		reqNum.setBounds(165, 139, 180, 27);
		add(reqNum);
		
		stage1 = new JComboBox();
		stage1.setModel(new DefaultComboBoxModel(new String[] {"", "APPROVED", "1", "2", "3", "4", "5", "6", "7"}));
		stage1.setBounds(165, 188, 180, 27);
		add(stage1);
		
		stage2 = new JComboBox();
		stage2.setModel(new DefaultComboBoxModel(new String[] {"", "1", "2", "3", "4", "5", "6", "7"}));
		stage2.setBounds(165, 235, 180, 27);
		add(stage2);
		
		stage3 = new JComboBox();
		stage3.setModel(new DefaultComboBoxModel(new String[] {"", "APPROVED", "1", "2", "3", "4", "5", "6", "7"}));
		stage3.setBounds(165, 292, 180, 27);
		add(stage3);
		
		stage4 = new JComboBox();
		stage4.setModel(new DefaultComboBoxModel(new String[] {"", "1", "2", "3", "4", "5", "6", "7"}));
		stage4.setBounds(165, 345, 180, 27);
		add(stage4);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setIcon(new ImageIcon(DetermineStageManger_GUI.class.getResource("/Picture/Button-Close-icon.png")));
		btnCancel.setBounds(10, 461, 135, 47);
		add(btnCancel);
		
		btnSubmit = new JButton("Submit");
		btnSubmit.setIcon(new ImageIcon(DetermineStageManger_GUI.class.getResource("/Picture/Ok-icon.png")));
		btnSubmit.setBounds(305, 461, 135, 47);
		add(btnSubmit);
		
		stage1Dur = new JTextField();
		stage1Dur.setBounds(354, 191, 70, 20);
		add(stage1Dur);
		stage1Dur.setColumns(10);
		
		stage3Dur = new JTextField();
		stage3Dur.setColumns(10);
		stage3Dur.setBounds(354, 295, 70, 20);
		add(stage3Dur);
	}
	public JTextField getStage1Dur() {
		return stage1Dur;
	}
	public void setStage1Dur(JTextField stage1Dur) {
		this.stage1Dur = stage1Dur;
	}
	public JTextField getStage3Dur() {
		return stage3Dur;
	}
	public void setStage3Dur(JTextField stage3Dur) {
		this.stage3Dur = stage3Dur;
	}
	public JComboBox getReqNum() {
		return reqNum;
	}
	public void setReqNum(JComboBox reqNum) {
		this.reqNum = reqNum;
	}
	public JComboBox getStage1() {
		return stage1;
	}
	public void setStage1(JComboBox stage1) {
		this.stage1 = stage1;
	}
	public JComboBox getStage2() {
		return stage2;
	}
	public void setStage2(JComboBox stage2) {
		this.stage2 = stage2;
	}
	public JComboBox getStage3() {
		return stage3;
	}
	public void setStage3(JComboBox stage3) {
		this.stage3 = stage3;
	}
	public JComboBox getStage4() {
		return stage4;
	}
	public void setStage4(JComboBox stage4) {
		this.stage4 = stage4;
	}
	public JButton getBtnSubmit() {
		return btnSubmit;
	}
	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}
	public JButton getBtnCancel() {
		return btnCancel;
	}
	public void setBtnCancel(JButton btnCancel) {
		this.btnCancel = btnCancel;
	}
	
}
